/*
 * All rights Reserved, Designed By DataDriver
 * Copyright:    DataDriver.Inc
 * Company:      Zhuo Wo Infomation Technology (ShangHai) CO.LTD
 */
package com.sun.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RefreshScope //刷新
public class Provider9001Controller {

    @Value("${user.name}")
    private String userName;

    @Value("${user.age}")
    private String age;


    @RequestMapping("/test")
    public String test() {
        return userName + "消费信息";
    }
}
